package com.fita.wechat.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.fita.entity.agent.Agent;
import com.fita.entity.agent.AgentApply;

import java.util.List;

/**
 * @description:
 * @author: 11200
 * @date: 2019/7/4
 */
@Dao("hibernate")
public interface AgentApplyDao {

    @Query("FROM AgentApply WHERE disabled = false AND primaryAgent = :primaryAgent")
    List<AgentApply> listSecondaryAgentApply(@Variable("primaryAgent") Agent primaryAgent);

}
